package com.efast.cafe.portal.service.api.impl;

import com.efast.cafe.portal.bean.api.ApiReqUriSampleQueryBean;
import com.efast.cafe.portal.dao.api.ApiReqUriSampleDao;
import com.efast.cafe.portal.entity.api.ApiReqUriSample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.efast.cafe.portal.service.api.IApiReqUriSampleService;

@Service
@Transactional
public class ApiReqUriSampleServiceImpl implements IApiReqUriSampleService{
	@Autowired
	private ApiReqUriSampleDao apiReqUriSampleDao;

	/**
	 * 查询uri 数据示例列表
	 */
	@Override
	public ApiReqUriSampleQueryBean queryPageList(ApiReqUriSampleQueryBean queryBean) {
		// TODO Auto-generated method stub
		queryBean.setResultList(apiReqUriSampleDao.queryPageList(queryBean));
		queryBean.setTotalRows(apiReqUriSampleDao.queryPageCount(queryBean));
		return queryBean;
	}

	/**
	 * 添加uri数据示例
	 */
	@Override
	public Integer addUriSample(ApiReqUriSample apiReqUriSample) {
		// TODO Auto-generated method stub
		return apiReqUriSampleDao.addUriSample(apiReqUriSample);
	}

	/**
	 * 编辑uri数据示例
	 */
	@Override
	public void editUriSample(ApiReqUriSample apiReqUriSample) {
		// TODO Auto-generated method stub
		 apiReqUriSampleDao.editUriSample(apiReqUriSample);
	}

	/**
	 * 删除 uri数据示例
	 */
	@Override
	public void delUriSample(Integer id) {
		// TODO Auto-generated method stub
		 apiReqUriSampleDao.delUriSample(id);
	}

}
